package com.xpsoft.oa.model.produce;


import com.google.gson.annotations.Expose;
import com.xpsoft.oa.model.system.AppUser;
import com.xpsoft.oa.model.system.TreeType;

/**
 * Material Base Java Bean, base class for the.oa.model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 *
 * TODO: add class/table comments
 */
public class Material extends com.xpsoft.core.model.BaseModel {

	@Expose
    protected Long id;  
	@Expose
	protected TreeType treeType;
	@Expose
	protected String materialNo;
	@Expose
	protected String materialName;
	@Expose
	protected String brandModel;
	@Expose
	protected String breastHeight;
	@Expose
	protected String seedHeight;
	@Expose
	protected String crown;
	@Expose
	protected String unit;
	@Expose
	protected Integer num;
	@Expose
	protected java.math.BigDecimal unitPrice;
	@Expose
	protected String remark;
	@Expose
	protected Integer status;
	@Expose
	protected AppUser createUser;
	@Expose
	protected java.util.Date createTime;


	/**
	 * Default Empty Constructor for class Material
	 */
	public Material () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class Material
	 */
	public Material (
		 Long in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Long
     * @hibernate.id column="id" type="java.lang.Long" generator-class="native"
	 */
	public Long getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Long aValue) {
		this.id = aValue;
	}	


	public TreeType getTreeType() {
		return treeType;
	}

	public void setTreeType(TreeType treeType) {
		this.treeType = treeType;
	}

	/**
	 * 材料编码	 * @return String
	 * @hibernate.property column="materialNo" type="java.lang.String" length="128" not-null="false" unique="false"
	 */
	public String getMaterialNo() {
		return this.materialNo;
	}
	
	/**
	 * Set the materialNo
	 */	
	public void setMaterialNo(String aValue) {
		this.materialNo = aValue;
	}	

	/**
	 * 材料名称	 * @return String
	 * @hibernate.property column="materialName" type="java.lang.String" length="128" not-null="false" unique="false"
	 */
	public String getMaterialName() {
		return this.materialName;
	}
	
	/**
	 * Set the materialName
	 */	
	public void setMaterialName(String aValue) {
		this.materialName = aValue;
	}	

	/**
	 * 品种规格	 * @return String
	 * @hibernate.property column="brandModel" type="java.lang.String" length="128" not-null="false" unique="false"
	 */
	public String getBrandModel() {
		return this.brandModel;
	}
	
	/**
	 * Set the brandModel
	 */	
	public void setBrandModel(String aValue) {
		this.brandModel = aValue;
	}	

	/**
	 * 胸径	 * @return String
	 * @hibernate.property column="breastHeight" type="java.lang.String" length="128" not-null="false" unique="false"
	 */
	public String getBreastHeight() {
		return this.breastHeight;
	}
	
	/**
	 * Set the breastHeight
	 */	
	public void setBreastHeight(String aValue) {
		this.breastHeight = aValue;
	}	

	/**
	 * 苗高	 * @return String
	 * @hibernate.property column="seedHeight" type="java.lang.String" length="128" not-null="false" unique="false"
	 */
	public String getSeedHeight() {
		return this.seedHeight;
	}
	
	/**
	 * Set the seedHeight
	 */	
	public void setSeedHeight(String aValue) {
		this.seedHeight = aValue;
	}	

	/**
	 * 冠幅	 * @return String
	 * @hibernate.property column="crown" type="java.lang.String" length="128" not-null="false" unique="false"
	 */
	public String getCrown() {
		return this.crown;
	}
	
	/**
	 * Set the crown
	 */	
	public void setCrown(String aValue) {
		this.crown = aValue;
	}	

	/**
	 * 计量单位	 * @return String
	 * @hibernate.property column="unit" type="java.lang.String" length="128" not-null="false" unique="false"
	 */
	public String getUnit() {
		return this.unit;
	}
	
	/**
	 * Set the unit
	 */	
	public void setUnit(String aValue) {
		this.unit = aValue;
	}	

	/**
	 * 数量	 * @return Integer
	 * @hibernate.property column="num" type="java.lang.Integer" length="10" not-null="false" unique="false"
	 */
	public Integer getNum() {
		return this.num;
	}
	
	/**
	 * Set the num
	 */	
	public void setNum(Integer aValue) {
		this.num = aValue;
	}	

	/**
	 * 单价	 * @return java.math.BigDecimal
	 * @hibernate.property column="unitPrice" type="java.math.BigDecimal" length="10" not-null="false" unique="false"
	 */
	public java.math.BigDecimal getUnitPrice() {
		return this.unitPrice;
	}
	
	/**
	 * Set the unitPrice
	 */	
	public void setUnitPrice(java.math.BigDecimal aValue) {
		this.unitPrice = aValue;
	}	

	/**
	 * 备注	 * @return String
	 * @hibernate.property column="remark" type="java.lang.String" length="65535" not-null="false" unique="false"
	 */
	public String getRemark() {
		return this.remark;
	}
	
	/**
	 * Set the remark
	 */	
	public void setRemark(String aValue) {
		this.remark = aValue;
	}	

	/**
	 * 状态	 * @return Integer
	 * @hibernate.property column="status" type="java.lang.Integer" length="10" not-null="false" unique="false"
	 */
	public Integer getStatus() {
		return this.status;
	}
	
	/**
	 * Set the status
	 */	
	public void setStatus(Integer aValue) {
		this.status = aValue;
	}	


	public AppUser getCreateUser() {
		return createUser;
	}

	public void setCreateUser(AppUser createUser) {
		this.createUser = createUser;
	}

	/**
	 * 	 * @return java.util.Date
	 * @hibernate.property column="createTime" type="java.util.Date" length="19" not-null="false" unique="false"
	 */
	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	/**
	 * Set the createTime
	 */	
	public void setCreateTime(java.util.Date aValue) {
		this.createTime = aValue;
	}	

}
